package com.gtq.uhome.mapper;

import com.gtq.uhome.pojo.OrderDetails;
import com.gtq.uhome.vo.DeliveryDetailsVo;
import com.gtq.uhome.vo.ShippingOrderVo;
import com.gtq.uhome.vo.ShippingOrders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderDetailsMapper {

    /**
     * 获取待审核表单全部信息
     * @param deliveryDetailsVo
     * @return
     */
    List<DeliveryDetailsVo> findDeliveryDetails(DeliveryDetailsVo deliveryDetailsVo);

    /**
     * 获取审核详情数据
     * @param deliveryDetailsVo
     * @return
     */
    List<DeliveryDetailsVo> findCheckPending(DeliveryDetailsVo deliveryDetailsVo);

    /**
     * 更新待审核列表订单详情信息
     * @param orderDetail
     * @return
     */
    Integer update(OrderDetails orderDetail);


    //配送员查看订单状态
    //收货人信息
    List<ShippingOrderVo> selectShippingOrder(@Param("orderId") String orderId, @Param("orderStatus") String orderStatus);
    //订单信息生鲜
    List<ShippingOrders> selectShippingOrdersFresh(@Param("orderId") String orderId, @Param("orderStatus") String orderStatus);
    //订单信息常温
    List<ShippingOrders> selectShippingOrdersTemperature(@Param("orderId") String orderId, @Param("orderStatus") String orderStatus);
}